package com.jingfang.cloud;

import com.jingfang.cloud.constant.MzConstants;
import com.jingfang.cloud.initialize.MzAppInitializer;
import lombok.extern.slf4j.Slf4j;
import org.dromara.quickswing.QSApplicationInitializer;
import org.dromara.quickswing.ui.app.QSWidget;

@Slf4j
public class MzMain {
    public static void main(String[] args) {
        QSApplicationInitializer.initialize(args, MzConstants.APP_NAME, MzConstants.APP_DATA_DIR, () -> {
            MzContext context = new MzContext();
            QSWidget<MzPrefs> application = context.createApplication(args);
            application.setVisible(true);
            MzAppInitializer ddcInitializer = MzAppInitializer.create(application);
            ddcInitializer.initialize();
        });
    }
}
